#include <iostream>
#include <pthread.h>
#include <sys/syscall.h>
#include <stdio.h>

using namespace std;

void* printThread(void *arg){
	pthread_t id = pthread_self();
	cout<< "the " << "thread, its id = " << (int*)(arg) << endl;
	cout<< "the " << "thread, its id = " << (unsigned int *)id << endl;
}

int main(){

	for (int i = 0; i < 8; i++){
		pthread_t tid;
		pthread_create(&tid, NULL, printThread, (void*)i);
	}
	while(true);
	return 0;
}
